<div class="row" style="padding:5px;">
	<div class="col-lg-12">
		<table class="layui-table" lay-skin="line">
		  <colgroup>
		  		<col width="1%">
				<col width="25%">
				<col width="15%">
				<col width="10%">
				<col width="24%">
				<col width="15%">
			<col>
		  </colgroup>
		  <thead>
			<#if metadataList?? && metadataList.content?? && metadataList.content?size gt 0>
			<tr>
			  <th>
			  	  <input type="checkbox" id="all" onclick="$('.ids').prop('checked' , $(this).prop('checked'));"/>
			  </th>
			  <th>中文名</th>
			  <th>表名</th>
			  <th>类型</th>
			  <th>ES数据</th>
			  <th>创建时间</th>
			  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
			</tr>
			</#if> 
		  </thead>
		  <tbody>
			<#if metadataList?? && metadataList.content?? && metadataList.content?size gt 0>
			<#list metadataList.content as table>
			<tr>
				<td style="width:1%;">
					<input type="checkbox" class="ids" name="ids" value="${table.id!''}"/>
				</td>
			  <td>
			  	<a href="/admin/metadata/table.html?id=${table.id!''}&<#if tabletype??>tabletype=${tabletype!''}<#else>tabletype=1</#if>">
				 ${table.name!''}
				 </a>	
			  </td>
			  <td>${table.tablename!''}	</td>
			  <td><#if table.tabletype?? && table.tabletype == "1">数据表<#elseif table.tabletype?? && table.tabletype == "3">ES数据表<#elseif table.tabletype?? && table.tabletype == "4">CRM<#else>SQL</#if></td>
			  <td>
			  	<#if table.fromdb?? && table.fromdb == true>
			  		<i class="layui-icon" style="color:#19a55d;">&#xe605;</i>
			  		${uKeFuDic[table.listblocktemplet!''].name!''}
			  		${uKeFuDic[table.previewtemplet!''].name!''}
			  	</#if>
			  </td>
			  <td><#if table.createtime??>${table.createtime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
			  <td style="white-space:nowrap;width:1%;" nowrap="nowrap">
			  		<#if table.tabletype?? && table.tabletype == "1">
					<a href="/admin/metadata/edit.html?id=${table.id!''}&p=${metadataList.number+1}&tabletype=${tabletype!''}" data-width="550" data-toggle="ajax" title="编辑${table.name!''}">
						<i class="layui-icon">&#xe642;</i>
						编辑
					</a>
					<#elseif table.tabletype?? && table.tabletype == "2">
					<a href="/admin/metadata/editsql.html?id=${table.id!''}&p=${metadataList.number+1}&tabletype=${tabletype!''}" data-width="550" data-toggle="ajax" title="编辑${table.name!''}">
						<i class="layui-icon">&#xe642;</i>
						编辑
					</a>
					</#if>
					<a href="/admin/metadata/delete.html?id=${table.id!''}&p=${metadataList.number+1}&tabletype=${tabletype!''}" data-toggle="tip" data-title="删除数据表项同时会删除数据表元数据下的所有内容，请确认是否删除数据表“${table.name!''}”？" title="删除${table.name!''}">
						<i class="layui-icon" style="color:red;">&#x1006;</i>
						删除
					</a>
			  </td>
			</tr>
			</#list>
			<#else>
				<div class="ukefu-empty">
					<i class="layui-icon"></i>
					<div style="">
						还没有数据表记录
					</div>
				</div>
			</#if>
		  </tbody>
		</table>
	</div> 	   
</div>